Don't crash on exit in Realtime mode if we're not writing to a "real" file
authorrobertl <robertl>
Tue, 9 Sep 2008 18:24:25 +0000 (18:24 +0000)
committerrobertl <robertl>
Tue, 9 Sep 2008 18:24:25 +0000 (18:24 +0000)
format.

main.c

diff --git a/main.c b/main.c
index 6b0a2d99e7a8b8932530788425796b2253757fad..bb75b7a49f8fab0bbc1ed2354f6e9597ee9c6e7e 100644 (file)
--- a/main.c
+++ b/main.c
@@ -682,7 +682,7 @@ main(int argc, char *argv[])
                if (ivecs->position_ops.rd_deinit) {
                        ivecs->position_ops.rd_deinit();
                }
-               if (ovecs->position_ops.wr_deinit) {
+               if (ovecs && ovecs->position_ops.wr_deinit) {
                        ovecs->position_ops.wr_deinit();
                }
                exit(0);